#业务类：注册表单业务

#导入和该业务有关的页面类
from page.page_form import PageForm

class ServiceForm(object):
    def __init__(self,driver,base_url):
        #定义页面有关的页面对象
        self.page_form=PageForm(driver,base_url)


    def service_form_001(self,d):
       self.page_form.openUrl()
       self.page_form.input_zanhao(d["zanhao"])
       self.page_form.input_pwd(d["pwd"])
       self.page_form.input_sex(d["sex"])
       self.page_form.input_guoji(d["guoji"])
       self.page_form.input_aihao(d["aihao"])
       self.page_form.input_degree(d["degree"])
       self.page_form.input_jiesao(d["jiesao"])
       self.page_form.uoloadZaoPian(d["zaopian"])
       self.page_form.input_birthday(d["birthday"])
       self.page_form.click_regButton()
       return True

